cmake_minimum_required (VERSION 3.20)

add_compile_options("$<$<CXX_COMPILER_ID:MSVC>:/utf-8>")   

if (MSVC) 
    add_definitions("/wd4251" "/wd4244")
    add_definitions(-DWIN32)
endif ()

##
## odv python bind
##

set(MODULE_NAME pyodv)

add_subdirectory(Core)
add_subdirectory(Gui)

pybind11_add_module(${MODULE_NAME} pyodv.cpp)

set_target_properties(${MODULE_NAME} PROPERTIES
    LIBRARY_OUTPUT_DIRECTORY "${PROJECT_ROOT_DIR}/pyCode/modules"
    RUNTIME_OUTPUT_DIRECTORY "${PROJECT_ROOT_DIR}/pyCode/modules"
)